package cn.spring.ly.service;

import cn.spring.ly.entity.Goods;
import cn.spring.ly.page.PageInfo;

import java.io.IOException;

import org.apache.solr.client.solrj.SolrServerException;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ly
 * @since 2018-12-19
 */
public interface GoodsService extends IService<Goods> {

	PageInfo<Goods> selectByPage(Page<Goods> page,String name,Integer catePid);
	
	void clearGoods();
	/**
	 * solr分页查询
	 * @param pageNo
	 * @param name
	 * @return
	 */
	PageInfo<Goods> selectBySolrPage(Integer pageNo,String name) throws SolrServerException, IOException ;
}
